// 会员投诉管理
import request from '@/router/axios.js'

// 获取会员投诉列表
export function customerComplaintFetchList(obj) {
  return request({
    url: '/eims/eimscustomercomplain/page',
    method: 'get',
    params: obj
  })
}

// 生成投诉单号
export function customerComplaintCreateOddNum() {
  return request({
    url: '/eims/eimscustomercomplain/gotoAddPage',
    method: 'get'
  })
}

// 添加会员投诉记录
export function customerComplaintAddObj(obj) {
  return request({
    url: '/eims/eimscustomercomplain',
    method: 'post',
    data: obj
  })
}

// 根据ID查询会员投诉信息
export function customerComplaintInfo(id) {
  return request({
    url: '/eims/eimscustomercomplain/'+id,
    method: 'get'
  })
}

// 修改处理会员投诉记录
export function customerComplaintEdit(obj) {
  return request({
    url: '/eims/eimscustomercomplain',
    method: 'put',
    data: obj
  })
}

// 删除会员投诉记录
export function customerComplaintDelObj(id) {
  return request({
    url: '/eims/eimscustomercomplain/'+id,
    method: 'delete'
  })
}


// 获取会员投诉列表
export function getFeedbackInfoByPersonId(obj) {
  return request({
    url: '/eims/eimscustomercomplain/getFeedbackInfoByPersonId',
    method: 'get',
    params: obj
  })
}
